<template>
  <section class="core-advantages">
    <h2 class="section-title">核心优势</h2>
    <p class="section-subtitle">完整的服务生态闭环</p>
    <div class="advantages-grid">
      <div v-for="(item, i) in advantages" :key="i" class="advantage-item">
        <div class="section-icon">
          <img :src="item.icon" alt="优势图标" class="item-icon" />
        </div>
        <p class="item-title">{{ item.title }}</p>
      </div>
    </div>
  </section>
</template>

<script setup lang="ts">
const advantages = [
  {
    icon: 'https://images.health.ufutx.com/202506/27/adc7fbfc2e08c14735876bcaeafe7cfb.png',
    title: 'AI+生命科学创新系统'
  },
  {
    icon: 'https://images.health.ufutx.com/202506/27/7ef824b51769e4e4bc15f44ee56fd394.png',
    title: '市场验证与成功案例'
  },
  {
    icon: 'https://images.health.ufutx.com/202506/27/be87f139c2c1a98f259db1fb3c82de6b.png',
    title: '独有技术护城河'
  },
  {
    icon: 'https://images.health.ufutx.com/202506/27/b53b04f8f7d32a786969997bedc70f24.png',
    title: '完整的服务生态闭环'
  },
  {
    icon: 'https://images.health.ufutx.com/202506/27/429c402e3432d018e4c341b1956eda7e.png',
    title: '低风险的合作保障'
  },
  {
    icon: 'https://images.health.ufutx.com/202506/27/ebfdb3a4daf3c832fa238f626514c80f.png',
    title: '百亿赛道先行者'
  }
]
</script>

<style scoped lang="less">
.core-advantages {
  text-align: center;
  padding: 100px 192px;
  border-top: 30px solid #f5f7fe;
  border-bottom: 30px solid #f5f7fe;
  .section-title {
    font-size: @font-size-xxl;
    font-weight: bold;
    //background: red;
    color: @text-color;
    margin-bottom: 20px;
  }
  .section-subtitle {
    font-size: 20px;
    color: @text-color-secondary;
    margin-bottom: 60px;
  }
  .advantages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 80px;
    margin: 0 auto;

    @media (max-width: @tablet-breakpoint) {
      grid-template-columns: repeat(3, 1fr);
    }
    @media (max-width: @mobile-breakpoint) {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  .advantage-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1 0 0;
    .section-icon {
      display: flex;
      width: 190px;
      padding: 2px 25.666px 0px 26.334px;
      justify-content: center;
      align-items: center;
      border-radius: 20px 20px 20px 0px;
      background: linear-gradient(180deg, rgba(236, 243, 255, 0) 0%, #ecf3ff 100%);
    }
    .item-icon {
      width: 138px;
      height: 138px;
      margin-bottom: 10px;
    }
    .item-title {
      font-size: @font-size-lg;
      color: @text-color;
    }
  }
}
</style>
